package com.right.health.app.bean;

import android.os.Parcel;
import android.os.Parcelable;

/*
 * Created by hopeliao on 2019-12-20
 *
 */public class DateOffsetInfo implements Parcelable {

    public String name;
    public String startDate;
    public String endDate;

    public DateOffsetInfo(String name, String startDate, String endDate) {
        this.name = name;
        this.startDate = startDate;
        this.endDate = endDate;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.startDate);
        dest.writeString(this.endDate);
    }

    protected DateOffsetInfo(Parcel in) {
        this.name = in.readString();
        this.startDate = in.readString();
        this.endDate = in.readString();
    }

    public static final Parcelable.Creator<DateOffsetInfo> CREATOR = new Parcelable.Creator<DateOffsetInfo>() {
        @Override
        public DateOffsetInfo createFromParcel(Parcel source) {
            return new DateOffsetInfo(source);
        }

        @Override
        public DateOffsetInfo[] newArray(int size) {
            return new DateOffsetInfo[size];
        }
    };
}
